package gsw.demo.pluggable;

import android.app.Application;
import android.content.Context;
import android.content.res.AssetManager;
import android.content.res.Resources;

import gsw.demo.pluggable.plugin_simple.PluginManagerSimple;
import gsw.tool.pluggable.core.PluginManager;

public class App extends Application {
    private static Context instance;
    private AssetManager assetManager;
    private Resources newResource;

    @Override
    public void onCreate() {
        super.onCreate();
//        initPluginSimple();
        initPlugin();
    }

    /**
     * 初始化插件化框架简化版
     */
    private void initPluginSimple() {
        PluginManagerSimple.getInstance().init(getApplicationContext());
    }

    /**
     * 初始化插件化框架正式版
     */
    private void initPlugin() {
        PluginManager.getInstance().init(getApplicationContext());
    }
}
